import Vue from 'vue'
import App from './App'
// import Store from './store'
// import {
//   request,
//   alert
// } from 'utils/wx'
import store from './store/index'
import Tips from './common/js/tips'
import MpvueRouterPatch from 'mpvue-router-patch'

Vue.use(MpvueRouterPatch)

Vue.config.productionTip = false
// Vue.prototype.$store = Store
// Vue.prototype.$alert = alert
// Vue.prototype.$http = request
Vue.prototype.$store = store // 全局注册store
Vue.prototype.$tips = Tips // 全局注册Tips

App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {

  config: {
    pages: ['pages/index/main', 'pages/guize/main', 'pages/show/main'],

    tabBar: {
      'color': '#999999',
      'selectedColor': '#fd5454',
      'list': [
        {
          'pagePath': 'pages/index/main',
          'text': '首页',
          'iconPath': '../static/images/home.png',
          'selectedIconPath': '../static/images/home_fill.png'
        },
        {
          'pagePath': 'pages/list/main',
          'text': '所有',
          'iconPath': '../static/images/cate.png',
          'selectedIconPath': '../static/images/cate_fill.png'
        },
        {
          'pagePath': 'pages/user/main',
          'text': '我的',
          'iconPath': '../static/images/people.png',
          'selectedIconPath': '../static/images/people_fill.png'
        }
      ]
    },
    window: {
      'backgroundTextStyle': 'light',
      'navigationBarBackgroundColor': '#fff',
      'navigationBarTitleText': '幸运女神',
      'navigationBarTextStyle': 'black'
    }
  }

}
